<?php

$input = array(
			array('id'=>8,'name'=>'nilsson ab','order'=>'12021'),
			array('id'=>10,'name'=>'karlsson ab','order'=>'19521'),
			array('id'=>12,'name'=>'larsson snickerier ab','order'=>'18521')
		);
//$input = array(1=>12, 2=>'larsson snickerier ab', 3=>'18521');

echo("prior filter<br/><pre>");
print_r($input);

if(isset($_REQUEST['search'])){
	$filtered = array_filter($input, 'filterArray'); 
}

function filterArray($value){
	if(is_array($value)){
		$tmpA = array_filter($value, 'filterArray');
		if(count($tmpA)>0){
			return true;
		} else {
			return false;
		}
		exit();
	}
	$matchIt = '/'.$_REQUEST['search'].'/i';
	if(preg_match($matchIt, $value)==1){
		return true;
	} else {
		return false;
	}
}

echo("<br/><br/>after filter<br/>");
print_r($filtered);

echo("</pre>")
?>

<form name="frmtest" action="test.php" method="post"></form>
<select name="ddlvalue">
	<option value="Test &amp; Delivery">Test &amp; Delivery</option>
</select>
